-- GENERATED SPELL FOR [Sunfury Blood Lord] --


function spell0_21743(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(37577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21743', 588, 1)
end

function spell1_21743(pUnit, Event) --@Torrent of Flames,Self--
pUnit:FullCastSpellOnTarget(36104,pUnit)
pUnit:RegisterEvent('Sorts_21743', 2500, 1)
end

function Sorts_21743(pUnit, Event)
local choix_sorts_21743 = math.random(0, 1)
if choix_sorts_21743 == 0 then
pUnit:RegisterEvent('spell0_21743', 1, 1)
end
if choix_sorts_21743 == 1 then
pUnit:RegisterEvent('spell1_21743', 1, 1)
end
end

function mob21743_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21743', math.random(1500, 3000), 1)
end

function mob21743_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21743_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21743_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21743, 1, 'mob21743_Action')
RegisterUnitEvent(21743, 2, 'mob21743_Leave')
RegisterUnitEvent(21743, 3, 'mob21743_Kill')
RegisterUnitEvent(21743, 4, 'mob21743_Die')
